home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Resources
/
HTMLGate 12.2.1B
/
htmlgate.exe
/
{app}
/
Cookies
/
cookie6.txt
< prev
next >
Wrap
Text File
|
2002-09-26
|
691b
|
23 lines
<SCRIPT LANGUAGE="JavaScript">
<!--
var cookieObject = document.cookie; // retrieve cookie string
function getCookie(name) { // use: getCookie("name");
var index = cookieObject.indexOf(name + "=");
if (index == -1) return null;
index = cookieObject.indexOf("=", index) + 1;
var endstr = cookieObject.indexOf(";", index);
if (endstr == -1) endstr = cookieObject.length;
return unescape(cookieObject.substring(index, endstr));
}
if (!getCookie("visited")) {
alert("This message appears only on your first visit.\r\nA cookie remembers that the message has been presented.");
document.cookie = "visited=true";
}
-->
</SCRIPT>